From 20a49536b31c33e93d9ca99aacdab55aab607bf7 Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 13 Oct 2006 03:01:25 +0000 Subject: [PATCH] Misc casts for MSVC. --- gpsbabel/kml.c | 2 +- gpsbabel/util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/kml.c b/gpsbabel/kml.c index 684ec27f4..4f386393d 100644 --- a/gpsbabel/kml.c +++ b/gpsbabel/kml.c @@ -804,7 +804,7 @@ kml_wr_position(waypoint *wpt) } if (max_position_points && (posn_track_points >= max_position_points)) { - waypoint *tonuke = QUEUE_FIRST(&trk_head->waypoint_list); + waypoint *tonuke = (waypoint *) QUEUE_FIRST(&trk_head->waypoint_list); dequeue(&tonuke->Q); waypt_free(tonuke); } diff --git a/gpsbabel/util.c b/gpsbabel/util.c index f05f7d120..ad359d4c8 100644 --- a/gpsbabel/util.c +++ b/gpsbabel/util.c @@ -297,7 +297,7 @@ xvasprintf(char **strp, const char *fmt, va_list args) /* size of first buffer malloc; start small to exercise grow routines */ #define FIRSTSIZE 64 char *buf = NULL; - size_t bufsize; + int bufsize; char *newbuf; size_t nextsize = 0; int outsize; -- 2.30.2